package com.construction.ccb

import android.os.Bundle
import androidx.fragment.app.Fragment
import com.construction.ccb.base.BaseActivity
import com.construction.ccb.databinding.ActivityMainBinding
import com.construction.ccb.ui.WebViewFragment
import com.fido.common.common_base_ui.base.viewbinding.binding
import com.fido.common.common_base_util.ext.arguments
import com.fido.common.common_base_util.ext.bindFragment
import com.fido.common.common_base_util.ext.withArguments

/**
 * @author: FiDo
 * @date: 2024/3/11
 * @des:
 */
class MainActivity : BaseActivity() {

    private val binding: ActivityMainBinding by binding()
    private val fragmentList = listOf<Fragment>(
        WebViewFragment.getInstance().apply {
            withArguments(Pair(WebViewFragment.BUNDLE_URL,""))
        }
    )

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)

        binding.apply {
            mVp.bindFragment(supportFragmentManager, fragmentList)
        }
    }

}